package com.xishu.entity.customer;

import com.xishu.annotation.lang.Lang;
import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 营销历史记录
 */
@Entity(name = "market_history")
@Table(indexes = {@Index(columnList = "companyId")})
public class MarketHistory extends AbstractEntity {
    @ApiModelProperty(value = "归属哪一个公司")
    private Long companyId;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "邮件类型")
    private Integer emailType;

    @ApiModelProperty(value = "营销任务名称")
    @Lang(key = "name")
    private String taskName_zh;

    @ApiModelProperty(value = "营销任务名称")
    @Lang(key = "name")
    private String taskName_en;

    @ApiModelProperty(value = "收件人数")
    private Integer personCount;

    @ApiModelProperty(value = "任务ID")
    private Long taskId;

    @ApiModelProperty(value = "邮件接收人数")
    private Integer emailCount;

    @ApiModelProperty(value = "短信接收人数")
    private Integer phoneCount;

    public Integer getEmailCount() {
        return emailCount;
    }

    public void setEmailCount(Integer emailCount) {
        this.emailCount = emailCount;
    }

    public Integer getPhoneCount() {
        return phoneCount;
    }

    public void setPhoneCount(Integer phoneCount) {
        this.phoneCount = phoneCount;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Integer getPersonCount() {
        return personCount;
    }

    public void setPersonCount(Integer personCount) {
        this.personCount = personCount;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getEmailType() {
        return emailType;
    }

    public void setEmailType(Integer emailType) {
        this.emailType = emailType;
    }

    public String getTaskName_zh() {
        return taskName_zh;
    }

    public void setTaskName_zh(String taskName_zh) {
        this.taskName_zh = taskName_zh;
    }

    public String getTaskName_en() {
        return taskName_en;
    }

    public void setTaskName_en(String taskName_en) {
        this.taskName_en = taskName_en;
    }
}
